package service.Impl;

import dao.EmployeeDao;
import dao.impl.EmployeeImpl;
import entity.Employee;
import service.EmployeeServiceDao;

import java.util.Collections;
import java.util.List;

public class EmployeeServiceDaoImpl implements EmployeeServiceDao {
    EmployeeDao employeeDao = new EmployeeImpl();
    @Override
    public List<Employee> findAll() {
        return employeeDao.findAll();
    }

    @Override
    public List<Employee> findByName(String empName) {
        return employeeDao.findByName(empName);
    }
}
